<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>iqa: GStreamer Bad Plugins 1.0 Plugins Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GStreamer Bad Plugins 1.0 Plugins Reference Manual">
<link rel="up" href="ch01.html" title="gst-plugins-bad Elements">
<link rel="prev" href="gst-plugins-bad-plugins-ipcslavepipeline.html" title="ipcslavepipeline">
<link rel="next" href="gst-plugins-bad-plugins-irtspparse.html" title="irtspparse">
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#gst-plugins-bad-plugins-IQA.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gst-plugins-bad-plugins-ipcslavepipeline.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gst-plugins-bad-plugins-irtspparse.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="gst-plugins-bad-plugins-IQA"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gst-plugins-bad-plugins-IQA.top_of_page"></a>iqa</span></h2>
<p>iqa — Image Quality Assessment plugin.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="gst-plugins-bad-plugins-IQA.description"></a><h2>Description</h2>
<p>IQA will perform full reference image quality assessment, with the
first added pad being the reference.</p>
<p>It will perform comparisons on video streams with the same geometry.</p>
<p>The image output will be the heat map of differences, between
the two pads with the highest measured difference.</p>
<p>For each reference frame, IQA will post a message containing
a structure named IQA.</p>
<p>The only metric supported for now is "dssim", which will be available
if https://github.com/pornel/dssim was installed on the system
at the time that plugin was compiled.</p>
<p>For each metric activated, this structure will contain another
structure, named after the metric.</p>
<p>The message will also contain a "time" field.</p>
<p>For example, if do-dssim is set to true, and there are
two compared streams, the emitted structure will look like this:</p>
<p>IQA, dssim=(structure)"dssim\,\ sink_1\=(double)0.053621271267184856\,\
sink_2\=(double)0.0082939683976297474\;",
time=(guint64)0;</p>
<div class="refsect3">
<a name="id-1.2.120.3.11"></a><h4>Example launch line</h4>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2</pre></td>
        <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch<span class="gtkdoc opt">-</span><span class="number">1.0</span> <span class="gtkdoc opt">-</span>m uridecodebin uri<span class="gtkdoc opt">=</span>file<span class="gtkdoc opt">:</span><span class="gtkdoc slc">///test/file/1 ! iqa name=iqa do-dssim=true \</span>
<span class="gtkdoc opt">!</span> videoconvert <span class="gtkdoc opt">!</span> autovideosink uridecodebin uri<span class="gtkdoc opt">=</span>file<span class="gtkdoc opt">:</span><span class="gtkdoc slc">///test/file/2 ! iqa.</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p> This pipeline will output messages to the console for each set of compared frames.</p>
</div>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-plugins-IQA.functions_details"></a><h2>Functions</h2>
<p></p>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-plugins-IQA.other_details"></a><h2>Types and Values</h2>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>